<%@page contentType="text/html" pageEncoding="UTF-8" %>

    $("td").contextMenu(function () {
        var items = [];
        var exType = getOs();
        <ibnms:isPermission operationCode="10-10-10-15">
        $(this).find("a._alarm").each(function () {
            var obj = this;
            items.push({
                text: $(obj).text(),
                href: obj.href,
                click: function () {
                    var url = this.href;
                    if('MSIE'==exType||navigator.userAgent.indexOf("rv:11")>0){
                        url = encodeURI(this.href);
                    }
                    var guid = window.showModalDialog(url, "", "dialogWidth=1050px;dialogHeight=600px;status=no");
                    if(guid){
                        this.text = "修改告警配置";
                        this.href = "<s:url action="alarmConfigForm" namespace="/ibnms/config"/>?event.guid="+guid;
                    }
                }
            });
        });
        </ibnms:isPermission>
        $(this).find("a._hisdata").each(function () {
            var obj = this;
            items.push({
                text: $(obj).text(),
                href: obj.href,
                click: function () {
                    var url = this.href;
                    if('MSIE'==exType||navigator.userAgent.indexOf("rv:11")>0){
                        url = encodeURI(this.href);
                    }
                    window.showModalDialog(url, "", "dialogWidth=1050px;dialogHeight=600px;status=no");
                }
            });
        });
        return items;
    }, "click", '&nbsp;<span title="" class="new_image"><img src="<%=application.getContextPath()%>/resources/ibnms/nresources/images/10-10.png"/></span>');
